extends CanvasLayer

signal start_initiated

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
	pass

func _on_start_button_pressed() -> void:
	$startButton.hide()
	$messageLabel.hide()
	
	start_initiated.emit()

func update_score(v):
	$scoreLabel.text = str(v)

func show_restart():
	$startButton.text = "Try Again"
	
	$startButton.show()
	$messageLabel.show()
